package org.xteam.sled.semantic.exp;

public class ExpNarrowu extends ExpNarrow {

	public ExpNarrowu(Exp expr, int width) {
		super(expr, width);
	}

	@Override
	public void visit(IExpVisitor visitor) {
		visitor.visitNarrowu(this);
	}
	
	public boolean equals(Object o) {
		return (o instanceof ExpNarrowu)
			&& ((ExpNarrowu)o).width == width
			&& ((ExpNarrowu)o).expr.equals(expr);
	}
	
	public String toString() {
		return "narrowU(" + expr + "," + width + ")";
	}

}
